package xyz.xtt.equity.client.request;

import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xyz.xtt.asset.client.response.AssetTransactionResponse;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TransferFromResult {
	private Boolean result;
	private Long assetId;
	private Long from;
	private Long to;
	private Integer num;
	private AssetTransactionResponse transaction;

	public boolean isOk() {
		return Objects.nonNull(result) && Objects.equals(result, Boolean.TRUE);
	}

}
